package com.zyd.blog.homeart.util;


import com.zyd.blog.homeart.enums.SpecCode;

import java.io.Serializable;

public class ResponseObject<T> implements Serializable {
    private Integer code;// 返回0  代表成功返回，其他返回情况自己定义 说明
    private Object data;
    private String msg;
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
    private Integer specCode = SpecCode.NET_OK.getCode();
    private SpecCode specMsg =SpecCode.NET_OK;
    public Integer getCode() {
        return code;
    }
    public void setCode(Integer code) {
        this.code = code;
    }
    public Object getData() {
        return data;
    }
    public void setData(Object data) {
        this.data = data;
    }
    public SpecCode getSpecMsg() {
        return specMsg;
    }
    public void setSpecMsg(SpecCode specMsg) {
        this.specMsg = specMsg;
    }
    public Integer getSpecCode() {
        return specMsg.getCode();
    }
}
